package com.usian.consumerlogin.feign;

import com.usian.consumerlogin.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("day15Train")
public interface FeignTrain {
    @RequestMapping("train/trainCount")
    Result trainCount(@RequestParam(value = "consumerId") Integer consumerId);
    @RequestMapping("train/courseCount")
    Result courseCount(@RequestParam(value = "consumerId") Integer consumerId);
    @RequestMapping("train/LatestTrain")
    Result LatestTrain();
}
